package com.caigou.modules.query.network.api

import com.caigou.comm.base.bean.HttpResult
import com.caigou.comm.base.bean.PrizeBallBean
import com.caigou.modules.query.bean.*
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author #Suyghur.
 * Created on 2021/09/26
 */
interface HttpQueryApiService {

    @GET("/api/animal/number/list")
    fun getPrizeBallList(): Flow<HttpResult<MutableList<PrizeBallBean>>>

    @GET("api/animal/list")
    fun getShengXiaoBallList(): Flow<HttpResult<MutableList<ShengXiaoBallItemBean>>>

    @GET("/api/animal/rgb/number/list")
    fun getBoSeBallList(): Flow<HttpResult<BoSeBallBean>>


    @GET("/api/menu/ling/ma")
    fun getLingMaImg(): Flow<HttpResult<String>>

    @GET("/api/prize/cold/and/hot")
    fun getColdHotList(@Query("sort") sort: Int, @Query("count") count: Int): Flow<HttpResult<MutableList<ColdHotItemBean>>>

    @GET("/api/prize/cold/and/hot/details")
    fun getColdHotDetailList(@Query("count") count: Int): Flow<HttpResult<MutableList<ColdHotDetailItemBean>>>

    @GET("/api/menu/history/not/opened/list")
    fun getLongestCodeList(@Query("tabType") tabType: Int): Flow<HttpResult<MutableList<LongestCodeItemBean>>>

    @GET("/api/prize/open/time/list")
    fun getPrizeDate(): Flow<HttpResult<MutableList<OpenPrizeTimeBean>>>
}